package com.huayi.reader.plugin;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

import com.facebook.CallbackManager;
import com.facebook.FacebookCallback;
import com.facebook.FacebookException;
import com.facebook.FacebookSdk;
import com.facebook.login.LoginManager;
import com.facebook.login.LoginResult;

import org.json.JSONArray;

import java.util.Arrays;

import io.dcloud.common.DHInterface.IWebview;
import io.dcloud.common.DHInterface.StandardFeature;

/**
 * Created by mac on 16/12/23.
 */

public class Reader extends StandardFeature {

    private String TAG = Reader.class.getName();
    private CallbackManager callbackManager;
    private Context context;


    public void onStart(Context pContext, Bundle pSavedInstanceState, String[] pRuntimeArgs) {

        /**
         * 如果需要在应用启动时进行初始化，可以继承这个方法，并在properties.xml文件的service节点添加扩展插件的注册即可触发onStart方法
         * */
        context = pContext;
        Log.i(TAG,"start");

    }

    public void test(IWebview pWebview, JSONArray array){
        Log.i(TAG,"test");
    }

    public void facebookLogin(IWebview pWebview, JSONArray array){

    }




}
